home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Clear / c / Free < prev    next >
Text File  |  1995-07-08  |  1KB  |  34 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Clear.c.Free
  12.     Author:  Copyright © 1993,1994 Jason Howat
  13.     Version: 1.01 (13 May 1994)
  14.     Purpose: Release all memory used by a Clear file.
  15.     History: 1.00 (16 Dec 1993)   initial version
  16.              1.01 (13 May 1994)   updated to use Mem_ library
  17. */
  18.  
  19.  
  20. #include <stdlib.h>
  21.  
  22. #include "DeskLib:Clear.h"
  23. #include "DeskLib:Mem.h"
  24.  
  25.  
  26. void Clear_Free(clear_picture *picture)
  27. {
  28.   if(picture->bitmap)
  29.     Mem_Free((void **)&picture->bitmap);
  30.   if(picture->palette)
  31.     Mem_Free((void **)&picture->palette);
  32.   free(picture);
  33. }
  34.